package wqh.service;

import wqh.domain.AlarmConfirm;

import java.util.List;

/**
 * Created by devts on 2016/9/28.
 */
public interface AlarmConfirmService {

    int insertRecord(AlarmConfirm alarmConfirm);

    int updateConfirmStatus(Integer confirm_status, Integer confirm_time, Integer id);

    List<AlarmConfirm> findAllRecord();

    List<AlarmConfirm> findAllByConfirmStatus(Integer id);

    List<AlarmConfirm> findAllByTimeTo(Integer unix_time);

    AlarmConfirm findAllById(Integer id);

    List<AlarmConfirm> findAllByTimeToAndConfirmStatus(Integer unix_time, Integer confirm_status);

    List<AlarmConfirm> findExportLog(Integer unix_time_start, Integer unix_time_end);

    List<AlarmConfirm> findByTimeRange(Integer start, Integer end);

    List<AlarmConfirm> findByTimeRangeAndType(String type,Integer start, Integer end);

    List<AlarmConfirm> findByStatus(String dev_status);

    int findAllCount(String dev_status);

    int deleteById(Integer id);

}
